package co.bugu.code.analysis.service.entity;

import cn.idev.excel.annotation.ExcelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class Commit {
    private static final long serialVersionUID = 1L;

    @ExcelProperty("提交者ID")
    private String id;

    @ExcelProperty("短ID")
    private String shortId;

    @ExcelProperty("项目ID")
    private Long projectId;

    @ExcelProperty("标题")
    private String title;

    @ExcelProperty("消息")
    private String message;

    @ExcelProperty("提交者名称")
    private String committerName;

    @ExcelProperty("提交者邮箱")
    private String committerEmail;

    @ExcelProperty("作者名称")
    private String authorName;

    @ExcelProperty("作者邮箱")
    private String authorEmail;

    @ExcelProperty("提交时间")
    private Date committedDate;

    @ExcelProperty("作者提交时间")
    private Date authoredDate;

    @ExcelProperty("创建时间")
    private Date createdAt;

    @ExcelProperty("时间戳")
    private Date timestamp;

    @ExcelProperty("状态")
    private String status;

    @ExcelProperty("网页地址")
    private String webUrl;

    @ExcelProperty("URL")
    private String url;

//    @ExcelProperty("父提交ID列表")
//    private List<String> parentIds;

    @ExcelProperty("添加行数")
    private Integer additions;

    @ExcelProperty("删除行数")
    private Integer deletions;

    @ExcelProperty("变更总行数")
    private Integer total;

    // --- 通用字段 ---
    @ExcelProperty("是否删除")
    private Boolean isDel;

    @ExcelProperty("创建时间")
    private Date createTime;

    @ExcelProperty("更新时间")
    private Date updateTime;

    // 如果数据库包含以下字段，请添加：
    @ExcelProperty("创建人")
    private String createUser;

    @ExcelProperty("更新人")
    private String updateUser;
}
